package com.pro.service.imple;

import com.pro.mapper.SyUserOrderMapper;
import com.pro.pojo.SyUserOrder;
import com.pro.service.SyUserOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 祖铭泽
 * @Date 2021/11/9/0009
 * @description 商品订单 业务层
 */
@Service
public class SyUserOrderServiceImple implements SyUserOrderService {
    @Autowired
    private SyUserOrderMapper syUserOrderMapper;

    @Override
    public List<SyUserOrder> getAllOrdersByStatusSourcePay(SyUserOrder syUserOrder) {
        return syUserOrderMapper.getAllOrdersByStatusSourcePay(syUserOrder);
    }

    @Override
    public boolean deleteCurrentOrder(Integer orderId) {
        return syUserOrderMapper.deleteCurrentOrder(orderId);
    }
    @Override
    public List<SyUserOrder> getCourseOrdersByStatusSourcePay(SyUserOrder syUserOrder) {
        return syUserOrderMapper.getCourseOrdersByStatusSourcePay(syUserOrder);
    }

    @Override
    public List<SyUserOrder> getCourseOrdersAdvancedSearch(SyUserOrder syUserOrder) {
        return syUserOrderMapper.getCourseOrdersAdvancedSearch(syUserOrder);
    }

    @Override
    public List<SyUserOrder> getProductOrdersAdvancedSearch(SyUserOrder syUserOrder) {
        return syUserOrderMapper.getProductOrdersAdvancedSearch(syUserOrder);
    }

    @Override
    public List<SyUserOrder> getProductDisposeOrdersByStatusSourcePay(SyUserOrder syUserOrder) {
        return syUserOrderMapper.getProductDisposeOrdersByStatusSourcePay(syUserOrder);
    }

    @Override
    public Integer getProductCountsByStatus(Integer status) {
        return syUserOrderMapper.getProductCountsByStatus(status);
    }

    @Override
    public List<SyUserOrder> getProductDisposeOrdersByStatusPaySource(Integer status) {
        return syUserOrderMapper.getProductDisposeOrdersByStatusPaySource(status);
    }

    @Override
    public List<SyUserOrder> getProductSalesReturnOrders(SyUserOrder syUserOrder) {
        return syUserOrderMapper.getProductSalesReturnOrders(syUserOrder);
    }

    @Override
    public Integer getProductCountsByAccomplishStatus(Integer createId) {
        return syUserOrderMapper.getProductCountsByAccomplishStatus(createId);
    }

    @Override
    public Integer getProductCountsByStatusCreateId(SyUserOrder syUserOrder) {
        return syUserOrderMapper.getProductCountsByStatusCreateId(syUserOrder);
    }

    @Override
    public List<SyUserOrder> getUnsubscribeApplyProductOrdersBySourcePay(SyUserOrder syUserOrder) {
        return syUserOrderMapper.getUnsubscribeApplyProductOrdersBySourcePay(syUserOrder);
    }

    @Override
    public List<SyUserOrder> getUnsubscribeApplyCourseOrdersBySourcePay(SyUserOrder syUserOrder) {
        return syUserOrderMapper.getUnsubscribeApplyCourseOrdersBySourcePay(syUserOrder);
    }

    @Override
    public List<SyUserOrder> getUnsubscribeApplyProductOrdersByNameAccountPhoneNum(SyUserOrder syUserOrder) {
        return syUserOrderMapper.getUnsubscribeApplyProductOrdersByNameAccountPhoneNum(syUserOrder);
    }

    @Override
    public List<SyUserOrder> getUnsubscribeApplyCourseOrdersByNameAccountPhoneNum(SyUserOrder syUserOrder) {
        return syUserOrderMapper.getUnsubscribeApplyCourseOrdersByNameAccountPhoneNum(syUserOrder);
    }

    @Override
    public List<SyUserOrder> getAcceptedUnsubscribeProductOrders(SyUserOrder syUserOrder) {
        return syUserOrderMapper.getAcceptedUnsubscribeProductOrders(syUserOrder);
    }

    @Override
    public List<SyUserOrder> getAcceptedUnsubscribeCourseOrders(SyUserOrder syUserOrder) {
        return syUserOrderMapper.getAcceptedUnsubscribeCourseOrders(syUserOrder);
    }

    @Override
    public List<SyUserOrder> getAcceptedUnsubscribeProductOrdersByNameAccountPhoneNum(SyUserOrder syUserOrder) {
        return syUserOrderMapper.getAcceptedUnsubscribeProductOrdersByNameAccountPhoneNum(syUserOrder);
    }

    @Override
    public List<SyUserOrder> getAcceptedUnsubscribeCourseOrdersByNameAccountPhoneNum(SyUserOrder syUserOrder) {
        return syUserOrderMapper.getAcceptedUnsubscribeCourseOrdersByNameAccountPhoneNum(syUserOrder);
    }

    @Override
    public Integer getCourseOrderCounts(Integer status) {
        return syUserOrderMapper.getCourseOrderCounts(status);
    }

    @Override
    public List<SyUserOrder> getCourseOrdersByStatus(Integer status) {
        return syUserOrderMapper.getCourseOrdersByStatus(status);
    }

    @Override
    public Integer getProductOrderCounts(Integer status) {
        return syUserOrderMapper.getProductOrderCounts(status);
    }

    @Override
    public List<SyUserOrder> getProductOrdersByStatus(Integer status) {
        return syUserOrderMapper.getProductOrdersByStatus(status);
    }

    @Override
    public Integer getAcceptedUnsubscribeOrderCounts(Integer status) {
        return syUserOrderMapper.getAcceptedUnsubscribeOrderCounts(status);
    }

    @Override
    public SyUserOrder getSyUserOrderById(Integer orderId) {
        return syUserOrderMapper.getSyUserOrderById(orderId);
    }

    @Override
    public SyUserOrder getProductByOrderId(Integer orderId) {
        return syUserOrderMapper.getProductByOrderId(orderId);
    }

    @Override
    public int getAllOrderUpperCount() {
        return syUserOrderMapper.getAllOrderUpperCount();
    }

}
